package com.crm.service;

import com.crm.dto.LoginDto;
import com.crm.dto.UserDto;
import com.crm.entity.User;
import com.crm.result.PageResult;
import com.crm.vo.SysUser;

import java.util.List;
import java.util.Set;

public interface UserService {
    User login(LoginDto loginDto);
    //获取用户
    SysUser getUser();

    Set<String> getRoles(SysUser user);

    Set<String> getMenuPermission(SysUser user);

    boolean hasUserRel(Integer deptId);
    //获取用户列表
    PageResult list(UserDto userDto);

    void addUser(UserDto userDto);

    List<User> selectByDeptId(Long deptId);

}
